<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"
	  xmlns:shiro="http://www.thymeleaf.org/thymeleaf-extras-shiro">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
		<meta name="description" content="">
		<meta name="author" content="">
		<title>宠物医院</title>
		<link th:href="@{/css/bootstrap.min.css}" rel="stylesheet">
		<link th:href="@{/css/signin.css}" rel="stylesheet">
		<link th:href="@{/img/pet2.jpg}" rel="shortcut icon">
	</head>
	<body class="text-center">
		<form class="form-signin" th:action="@{/dLogin}">
			<img class="mb-4" th:src="@{/img/pet.jpeg}" alt="" width="300" height="150">
			<h1 class="h3 mb-3 font-weight-normal" th:text="#{login.tip}">请登录</h1>
			<!--只有登录错误才会显示-->
			<p style="color: #ff0000" th:text="${msg}" th:if="${not #strings.isEmpty(msg)}"/>
			<input type="text"  name="username" class="form-control" th:placeholder="#{login.username}" required="" autofocus="">
			<input type="password" name="password" class="form-control" th:placeholder="#{login.password}" required="">
			<button class="btn btn-lg btn-primary btn-block" type="submit">[[#{login.btn}]]</button>
			<br/>
			<p><a class="btn btn-lg btn-primary btn-block" th:href="@{/toRegister}">[[#{login.register}]]</a></p>
			<a class="btn btn-sm" th:href="@{/login.html(l='zh_CN')}">中文</a>
			<a class="btn btn-sm" th:href="@{/login.html(l='en_US')}">English</a>
		</form>
	</body>
</html>